package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 关于、帮助业务对象 p_about
 *
 * @author ruoyi
 * @date 2022-07-13
 */

@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel("关于、帮助业务对象")
public class PAboutBo extends BaseEntity {

    /**
     *
     */
    @ApiModelProperty(value = "", required = true)
    @NotNull(message = "不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 标题
     */
    @ApiModelProperty("标题")
    @NotBlank(message = "标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 内容
     */
    @ApiModelProperty(value = "内容", required = true)
    @NotBlank(message = "内容不能为空", groups = {AddGroup.class, EditGroup.class})
    private String info;

    /**
     * 文本类型 0 关于我们 1 使用帮助 2 咨询指南 3 平台介绍 4 平台保障
     */
    @ApiModelProperty(value = "文本类型 0 关于我们 1 使用帮助 2 咨询指南 3 平台介绍 4 平台保障", required = true)
    @NotBlank(message = "文本类型不能为空", groups = {AddGroup.class, EditGroup.class})
    private String type;


}
